<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AlterStatDailyHostInfo3Table extends Migration
{
    protected $connection = 'stat';

    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('stat_daily_host_info', function (Blueprint $table) {
            // $table->unsignedMediumInteger('income_coin')->default(0)->comment('收益金币');
            // $table->unsignedMediumInteger('online_time')->default(0)->comment('在线时长（秒）');
            $table->unsignedMediumInteger('call_minutes')->default(0)->comment('通话时长（分钟）');
            $table->unsignedSmallInteger('average_call_time')->default(0)->comment('通话时长（秒）');
            $table->unsignedSmallInteger('hi_num')->default(0)->comment('互动人数');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('stat_daily_host_info', function (Blueprint $table) {
            //
        });
    }
}
